home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / exec / sendio.c < prev    next >
C/C++ Source or Header  |  1996-10-24  |  2KB  |  76 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: sendio.c,v 1.5 1996/10/24 15:50:57 aros Exp $
  4.     $Log: sendio.c,v $
  5.     Revision 1.5  1996/10/24 15:50:57  aros
  6.     Use the official AROS macros over the __AROS versions.
  7.  
  8.     Revision 1.4  1996/08/13 13:56:08  digulla
  9.     Replaced AROS_LA by AROS_LHA
  10.     Replaced some AROS_LH*I by AROS_LH*
  11.     Sorted and added includes
  12.  
  13.     Revision 1.3  1996/08/01 17:41:19  digulla
  14.     Added standard header for all files
  15.  
  16.     Desc:
  17.     Lang: english
  18. */
  19. #include <exec/execbase.h>
  20. #include <exec/io.h>
  21. #include <aros/libcall.h>
  22.  
  23. /*****************************************************************************
  24.  
  25.     NAME */
  26.     #include <clib/exec_protos.h>
  27.  
  28.     AROS_LH1(void, SendIO,
  29.  
  30. /*  SYNOPSIS */
  31.     AROS_LHA(struct IORequest *, iORequest, A1),
  32.  
  33. /*  LOCATION */
  34.     struct ExecBase *, SysBase, 77, Exec)
  35.  
  36. /*  FUNCTION
  37.     Start an asynchronous I/O request by calling the device's BeginIO()
  38.     vector. After sending the messages asynchronously you can wait for
  39.     the message to be replied at the I/O reply port.
  40.  
  41.     INPUTS
  42.     iORequest - Pointer to iorequest structure.
  43.  
  44.     RESULT
  45.  
  46.     NOTES
  47.  
  48.     EXAMPLE
  49.  
  50.     BUGS
  51.  
  52.     SEE ALSO
  53.     OpenDevice(), CloseDevice(), DoIO(), CheckIO(), AbortIO(), WaitIO()
  54.  
  55.     INTERNALS
  56.  
  57.     HISTORY
  58.  
  59. ******************************************************************************/
  60. {
  61.     AROS_LIBFUNC_INIT
  62.  
  63.     /* Prepare the message. Don't set quick bit. */
  64.     iORequest->io_Flags=0;
  65.     iORequest->io_Message.mn_Node.ln_Type=0;
  66.  
  67.     /* Call BeginIO() vector */
  68.     AROS_LVO_CALL1(void,
  69.     AROS_LCA(struct IORequest *,iORequest,A1),
  70.     struct Device *,iORequest->io_Device,5,
  71.     );
  72.  
  73.     AROS_LIBFUNC_EXIT
  74. } /* SendIO */
  75.  
  76.